package at.fhooe.mcm12.java.interfaces;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

public interface RMISensorControllerInterface extends Remote, ISensorListener {
	public static final String HOST = "172.20.10.9"; //"10.28.12.53";
	public static final String NAME = "SensorController";
	
	public void addListener(ISensorListener l) throws RemoteException;
	
	public void removeListener(ISensorListener l) throws RemoteException;
	
	public ArrayList<RMISensorInterface> getSubscribableSensors() throws RemoteException;
	
	public void enableSensor(RMISensorInterface _sensor) throws RemoteException;
	
	public void disableSensor(RMISensorInterface _sensor) throws RemoteException;
	
//	public void onSensorValueReceived(AbstractSensor sensor, SensorValue value) throws RemoteException;

}
